import React from 'react';
import './index.less';
require('./font_rq19lw0xbi/iconfont.js'); //将下载文件中的iconfont.js引入

interface IProps {
  type: string;
}

export default function Icon(props: IProps) {
  return (
    <svg className="icon" aria-hidden="true">
      <use xlinkHref={'#icon-' + props.type}></use>
    </svg>
  );
}
